package com.iakuil.app.common.redis;

import com.alicp.jetcache.anno.config.EnableMethodCache;
import com.alicp.jetcache.autoconfigure.JetCacheAutoConfiguration;
import com.iakuil.app.common.core.constant.SysConstant;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;

/**
 * 缓存自动配置
 *
 * <p>基于JetCache的一二级缓存配置
 * <p>PS.不建议使用JetCache的分布式锁
 *
 * @author Kai
 */
@AutoConfiguration
@ConditionalOnClass({RedisAutoConfiguration.class, JetCacheAutoConfiguration.class})
@EnableMethodCache(basePackages = SysConstant.BASE_APP_PACKAGE)
public class CacheAutoConfiguration {
}
